.hero-page{
  position: relative;
  top: 100px;
  margin-bottom: 180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap:40px;
}

.hero-page h4{
  margin: 0;
  margin-bottom: 20px;
  font-size: 30px;
  font-family: Apricot ;
  font-weight: lighter;
 
}

.hero-page h1{
  margin: 0;
  font-size: 50px;
  font-family: Macondo;
}



.hero-page p{
  font-family: play;
  margin: 0;
  font-size: 18px;
  line-height: 30px;
  word-spacing: 7px;
  font-weight: 500;
}

.hero-content{
  position: relative;
  left: 15%;
  padding-right: 25%;
}

.container{
  
  box-sizing: border-box;
  position: relative;
  text-align: center;
  overflow: hidden;
  height: 400px;
  top: 15%;
    
  
}

.container .slider{
  height: 150px;;
  width: 120px;
  position: absolute;
  left: calc(50% - 50px);
  top: 15%;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  animation: autorun 20s linear infinite;
}

@keyframes autorun{
  from{
    transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
  } to{
    transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
  }
}

.container .slider .items{
  position: absolute;
  inset: 0 0 0 0 ;
  transform: 
  rotateY(calc((var(--photo) - 1) * (360 / var(--quantity)) * 1deg))
  translateZ(300px);
}


.container .slider .items img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-service-section{
  background-color: #f7f7f7;
  padding: 30px 80px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 120vh;
  
}

.about-service-section-title{
  margin-bottom: 20px;
}
.about-service-section h1{
  font-family: Macondo;
  font-size: 35px;
}

.about-service-section p{
  font-family: Recursive;
  word-spacing: 3px;
}
.about-service-section span{
  color: red;
}

.about-service-section-container{
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  box-shadow: 0px 30px 50px #dbdbdb ;
  
}

.about-service-section-container .about-service-section-slider .about-service-section-item{
  position: absolute;
  top: 30%;
  transform: translate(0 -20%);
  height: 300px;
  width: 200px;
  border-radius: 20px;
  box-shadow: 0 30px 50px #505050;
  background-position: 50% 50%;
  background-size: cover;
  transition: 0.5s;
  
}

.about-service-section-slider .about-service-section-item:nth-child(1),
.about-service-section-slider .about-service-section-item:nth-child(2){
  top: 0;
  left: 0;
  transition: translate(0 0);
  border-radius: 0;
  height: 100%;
  width: 100%;
}


.about-service-section-item:nth-child(3){
  left: 50%;
}
.about-service-section-item:nth-child(4){
  left: calc(50% + 220px);
}
.about-service-section-item:nth-child(5){
  left: calc(50% + 440px);
}

.about-service-section-item:nth-child( 6){
  left: calc(50% + 660px);
  opacity: 0;
  
}

.about-service-section-item .about-service-section-content{
  position: absolute;
  top: 50%;
  left: 100px;
  width: 300px;
  text-align: left;
  color: black;
  transform: translate(0 -50%);
  font-family: Recursive;
  display: none;
  
}



.about-service-section-slider .about-service-section-item:nth-child(2) .about-service-section-content{
  display: block;
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  animation: animate 1s ease-in-out forwards;
}

@keyframes animate{
  from{
    opacity: 0;
    transform: translate(100px);
    filter: blur(33px);
    top:100%
  }
  to{
    opacity: 1;
    transform: translate() ;
    filter: blur(0);
    top: 50%;
  }
}

.navBtn{
  width: 200px;
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 0);
}

.navBtn button{
  padding: 10px 30px;
  border: 1px solid black;
  border-radius: 8px;
  margin: 0 5px;
  font-size: 30px;
  cursor: pointer;
}


@media(max-width: 1300px){
.hero-page{
  grid-template-columns: 1fr;
  
}
.hero-content{
  padding: 0 20px; 
  margin-right: 20%;
  left: 8%;
}

.about-service-section{
  overflow: hidden;
  width: 100%;
  padding: 0% ;
 
  
}

.about-service-section-container{
  top: 60%;
}



}
@media (max-width: 750px) {

  .about-service-section-container{
    height: 400px;
    width: 800px;
  }
  
}

@media(max-width: 680px){
  .items{
    height: 80px;
    width: 60px;
  }
 
  .container .slider .items{
    
    transform: 
    rotateY(calc((var(--photo) - 1) * (360 / var(--quantity)) * 1deg))
    translateZ(150px);
  }
}

@media(max-width: 530px){
  .hero-content p{
    text-align: center;
  }
  .about-service-section-container{
    height: 300px;
    width: 400px;
    top: 50%;
  
  }
  .about-service-section-item .about-service-section-content{
    z-index: -1;
  }
}

@media(max-width: 430px){
  .hero-content p{
    text-align: justify;
    word-spacing: 2px;
    line-height: 24px;
    font-size: 14px;
  }
  .about-service-section-container{
    height: 250px;
    width: 350px;
  }
  .navBtn button{
    padding: 5px 10px;
    font-size: 16px;
  }
}

@media(max-width: 320px){
  .hero-content h1{
    
    font-size: 45px;
  }
  
  .about-service-section-container{
    height: 200px;
    width: 300px;
  }
 
}


